//
//  HWJiaoYiShouCangTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/10/23.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWJiaoYiShouCangTableViewCell.h"

@implementation HWJiaoYiShouCangTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.shoucangBut.layer.cornerRadius = 12.5;
    self.shoucangBut.layer.masksToBounds = YES;
    self.icoImgaView.layer.cornerRadius = 4;
    self.icoImgaView.layer.masksToBounds = YES;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setDataModel:(HWTrdingcollectionModel *)dataModel {
    
    _dataModel = dataModel;
    
    self.dateLabel.text = [NSString stringWithFormat:@"上架时间%@",dataModel.time];
    
    NSURL *url = [NSURL URLWithString:dataModel.icon];
    
    [self.icoImgaView sd_setImageWithURL:url placeholderImage:nil];
    
    self.nameLabel.text =  [NSString stringWithFormat:@"%@",dataModel.name];
    self.miaoshuLabel.text =  [NSString stringWithFormat:@"%@",dataModel.introduction];
    self.priceLabel.text =  [NSString stringWithFormat:@"%@",dataModel.money];
    
    
    
}

@end
